﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SIA.Configurators;

namespace SIA.HwAccess.PLCSiemens
{
    public class S7PLCs : AbstractHwDevices
    {
        public S7PLCs(IDictionaryProperty plcProperty, IDictionaryProperty connProperty, IDictionaryProperty signalProperty)
        {
            foreach(KeyValuePair<String, IDictionaryProperty> kp in plcProperty)
                if (kp.Value["Type"].PropertyValue.ToUpper() == "S7PLC")
                    this.Add(kp.Value.PropertyValue, new S7PLC(kp.Value, connProperty, signalProperty));

            this._collectionName = "PLC Siemens";
        }       
    }
}
